package com.achao.utils;

import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;

/**
 * 参数工具类
 *
 * @Author: achao
 * @DateTime: 2022/7/24 16:07
 * @Description: TODO
 */
public class ParamUtils {
    static {
        init();
    }

    public static String SECRET;

    private static void init() {
        Properties pro = new Properties();
        String conf = "application.properties";
        InputStream is = ParamUtils.class.getClassLoader().getResourceAsStream(conf);
        try {
            pro.load(is);
        } catch (IOException e) {
            e.printStackTrace();
        }
        SECRET = pro.getProperty("SECRET");
    }

    /*分页参数*/
    public static int NOW_PAGE = 0; // 当前页
    public static int PAGE_SIZE = 5; // 页面大小
}
